<h1>Listing sprints</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Start time</th>
    <th>End time</th>
    <th>User</th>
    <th>Status</th>
  </tr>

<% for sprint in @sprints %>
  <tr>
    <td><%=h sprint.title %></td>
    <td><%=h sprint.start_time %></td>
    <td><%=h sprint.end_time %></td>
    <td><%=h sprint.user_id %> - <%=h sprint.user.login %></td>
    <td><%=h sprint.status %></td>
    <td><%= link_to 'Show', sprint %></td>
    <td><%= link_to 'Edit', edit_sprint_path(sprint) %></td>
    <td><%= link_to 'Destroy', sprint, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New sprint', new_sprint_path %>
